package org.example.game.history;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2024/07/28 10:30
 */
public class Solution4081 {

    public static void main(String[] args) {
        System.out.println(new Solution4081().canAliceWin(new int[]{1, 2, 3, 4, 5, 14}));
    }


    public boolean canAliceWin(int[] nums) {

        int sum = 0;
        int sumA = 0;
        int sumB = 0;

        for (int num : nums) {
            if(num < 10){
                sumA += num;
            }else {
                sumB += num;
            }
            sum += num;
        }
        return  sumA > (sum - sumA) || sumB > (sum - sumB);

    }
}
